package com.example.algorithm.tree.redBlackTree;

public class RedBlackTreeTest {

    public static void main(String[] args) {

        //创建红黑树
        RedBlackTree<String, String> tree = new RedBlackTree<>();

        //插入
        tree.put("1","张三");
        tree.put("2","李四");
        tree.put("3","王五");

        //获取
        String s1 = tree.get("1");
        System.out.println(s1);

        String s2 = tree.get("2");
        System.out.println(s2);

        String s3 = tree.get("3");
        System.out.println(s3);
    }
}
